package pp.zz.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import pp.zz.pojo.User;

import java.util.List;

public interface UserDao {

    //查询
    @Select("select * from u_user")
    public List<User> findAll();

    @Insert("INSERT INTO u_user(user_name,birthday,sex,address,role_id)VALUES (#{username},#{birthday},#{sex},#{address},#{roleId})")
    public void insert( User user);

}
